home *** CD-ROM | disk | FTP | other *** search
- '******************************************************************'
- '* *'
- '* TurboCAD for Windows *'
- '* Copyright (c) 1993 - 2004 *'
- '* International Microcomputer Software, Inc. *'
- '* (IMSI) *'
- '* All rights reserved. *'
- '* *'
- '******************************************************************'
- Public Enum ActiveTool
- iSelectTool = 0
- iAddLineSingleTool = 1
- iAddCircleCenterAndPoint = 2
- End Enum
-
- Public Class Form1
- Inherits System.Windows.Forms.Form
- Const sTitle = "TCGeometry sample application !"
- Dim firstPointX As Integer
- Dim firstPointY As Integer
- Dim previousMoveX As Integer
- Dim previousMoveY As Integer
- Dim pGraphics As System.Drawing.Graphics
- Dim pPen As System.Drawing.Pen
- Dim pPenBackground As System.Drawing.Pen
- Dim tcApp As TCEngine
- Dim m_bDrag As Boolean
- Dim m_iActiveTool As ActiveTool
- Dim m_BackgroundColor As System.Drawing.Color
-
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
-
- pGraphics = picView.CreateGraphics()
-
- pGraphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality
- 'pGraphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality
- pPen = New Pen(System.Drawing.Color.Blue, 1)
- '//pPenBackground = new Pen (picView.BackColor ,1)
- EnableButtons(False)
- tcApp = New TCEngine
- firstPointX = -1
- firstPointY = -1
- previousMoveX = -1
- previousMoveY = -1
- m_bDrag = False
- m_iActiveTool = ActiveTool.iSelectTool
-
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.IContainer
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
- Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
- Friend WithEvents cmCreateTCApp As System.Windows.Forms.Button
- Friend WithEvents cmNewDrawing As System.Windows.Forms.Button
- Friend WithEvents cmCloseDrawing As System.Windows.Forms.Button
- Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
- Friend WithEvents cmZoomIn As System.Windows.Forms.Button
- Friend WithEvents cmZoomOut As System.Windows.Forms.Button
- Friend WithEvents cmZoomExtents As System.Windows.Forms.Button
- Friend WithEvents cmCreateLine As System.Windows.Forms.Button
- Friend WithEvents cmCreateCircle As System.Windows.Forms.Button
- Friend WithEvents cmSelect As System.Windows.Forms.Button
- Friend WithEvents label2 As System.Windows.Forms.Label
- Friend WithEvents label3 As System.Windows.Forms.Label
- Friend WithEvents propsPalette As System.Windows.Forms.TreeView
- Friend WithEvents label1 As System.Windows.Forms.Label
- Friend WithEvents cmRefresh As System.Windows.Forms.Button
- Private WithEvents picView As System.Windows.Forms.PictureBox
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.GroupBox1 = New System.Windows.Forms.GroupBox
- Me.cmCreateTCApp = New System.Windows.Forms.Button
- Me.GroupBox2 = New System.Windows.Forms.GroupBox
- Me.cmNewDrawing = New System.Windows.Forms.Button
- Me.cmCloseDrawing = New System.Windows.Forms.Button
- Me.picView = New System.Windows.Forms.PictureBox
- Me.StatusBar1 = New System.Windows.Forms.StatusBar
- Me.propsPalette = New System.Windows.Forms.TreeView
- Me.cmZoomIn = New System.Windows.Forms.Button
- Me.cmZoomOut = New System.Windows.Forms.Button
- Me.cmZoomExtents = New System.Windows.Forms.Button
- Me.cmCreateLine = New System.Windows.Forms.Button
- Me.cmCreateCircle = New System.Windows.Forms.Button
- Me.cmSelect = New System.Windows.Forms.Button
- Me.label2 = New System.Windows.Forms.Label
- Me.label3 = New System.Windows.Forms.Label
- Me.label1 = New System.Windows.Forms.Label
- Me.cmRefresh = New System.Windows.Forms.Button
- Me.GroupBox1.SuspendLayout()
- Me.GroupBox2.SuspendLayout()
- Me.SuspendLayout()
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.Add(Me.cmCreateTCApp)
- Me.GroupBox1.Location = New System.Drawing.Point(32, 16)
- Me.GroupBox1.Name = "GroupBox1"
- Me.GroupBox1.Size = New System.Drawing.Size(200, 64)
- Me.GroupBox1.TabIndex = 0
- Me.GroupBox1.TabStop = False
- Me.GroupBox1.Text = "Application"
- '
- 'cmCreateTCApp
- '
- Me.cmCreateTCApp.Location = New System.Drawing.Point(16, 24)
- Me.cmCreateTCApp.Name = "cmCreateTCApp"
- Me.cmCreateTCApp.Size = New System.Drawing.Size(80, 24)
- Me.cmCreateTCApp.TabIndex = 0
- Me.cmCreateTCApp.Text = "Create"
- '
- 'GroupBox2
- '
- Me.GroupBox2.Controls.Add(Me.cmNewDrawing)
- Me.GroupBox2.Controls.Add(Me.cmCloseDrawing)
- Me.GroupBox2.Location = New System.Drawing.Point(280, 16)
- Me.GroupBox2.Name = "GroupBox2"
- Me.GroupBox2.Size = New System.Drawing.Size(200, 64)
- Me.GroupBox2.TabIndex = 0
- Me.GroupBox2.TabStop = False
- Me.GroupBox2.Text = "Drawing"
- '
- 'cmNewDrawing
- '
- Me.cmNewDrawing.Location = New System.Drawing.Point(16, 24)
- Me.cmNewDrawing.Name = "cmNewDrawing"
- Me.cmNewDrawing.Size = New System.Drawing.Size(80, 24)
- Me.cmNewDrawing.TabIndex = 0
- Me.cmNewDrawing.Text = "New"
- '
- 'cmCloseDrawing
- '
- Me.cmCloseDrawing.Location = New System.Drawing.Point(104, 24)
- Me.cmCloseDrawing.Name = "cmCloseDrawing"
- Me.cmCloseDrawing.Size = New System.Drawing.Size(80, 24)
- Me.cmCloseDrawing.TabIndex = 0
- Me.cmCloseDrawing.Text = "Close"
- '
- 'picView
- '
- Me.picView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
- Me.picView.Location = New System.Drawing.Point(8, 168)
- Me.picView.Name = "picView"
- Me.picView.Size = New System.Drawing.Size(584, 432)
- Me.picView.TabIndex = 1
- Me.picView.TabStop = False
- '
- 'StatusBar1
- '
- Me.StatusBar1.Location = New System.Drawing.Point(0, 605)
- Me.StatusBar1.Name = "StatusBar1"
- Me.StatusBar1.Size = New System.Drawing.Size(912, 24)
- Me.StatusBar1.TabIndex = 2
- '
- 'propsPalette
- '
- Me.propsPalette.ImageIndex = -1
- Me.propsPalette.Location = New System.Drawing.Point(608, 168)
- Me.propsPalette.Name = "propsPalette"
- Me.propsPalette.SelectedImageIndex = -1
- Me.propsPalette.Size = New System.Drawing.Size(288, 432)
- Me.propsPalette.TabIndex = 3
- '
- 'cmZoomIn
- '
- Me.cmZoomIn.Location = New System.Drawing.Point(16, 128)
- Me.cmZoomIn.Name = "cmZoomIn"
- Me.cmZoomIn.Size = New System.Drawing.Size(80, 24)
- Me.cmZoomIn.TabIndex = 0
- Me.cmZoomIn.Text = "Zoom In"
- '
- 'cmZoomOut
- '
- Me.cmZoomOut.Location = New System.Drawing.Point(104, 128)
- Me.cmZoomOut.Name = "cmZoomOut"
- Me.cmZoomOut.Size = New System.Drawing.Size(80, 24)
- Me.cmZoomOut.TabIndex = 0
- Me.cmZoomOut.Text = "Zoom Out"
- '
- 'cmZoomExtents
- '
- Me.cmZoomExtents.Location = New System.Drawing.Point(192, 128)
- Me.cmZoomExtents.Name = "cmZoomExtents"
- Me.cmZoomExtents.Size = New System.Drawing.Size(88, 24)
- Me.cmZoomExtents.TabIndex = 0
- Me.cmZoomExtents.Text = "Zoom Extents"
- '
- 'cmCreateLine
- '
- Me.cmCreateLine.Location = New System.Drawing.Point(288, 128)
- Me.cmCreateLine.Name = "cmCreateLine"
- Me.cmCreateLine.Size = New System.Drawing.Size(80, 24)
- Me.cmCreateLine.TabIndex = 0
- Me.cmCreateLine.Text = "Add Line"
- '
- 'cmCreateCircle
- '
- Me.cmCreateCircle.Location = New System.Drawing.Point(376, 128)
- Me.cmCreateCircle.Name = "cmCreateCircle"
- Me.cmCreateCircle.Size = New System.Drawing.Size(80, 24)
- Me.cmCreateCircle.TabIndex = 0
- Me.cmCreateCircle.Text = "Add Circle"
- '
- 'cmSelect
- '
- Me.cmSelect.Location = New System.Drawing.Point(472, 128)
- Me.cmSelect.Name = "cmSelect"
- Me.cmSelect.Size = New System.Drawing.Size(80, 24)
- Me.cmSelect.TabIndex = 0
- Me.cmSelect.Text = "Select"
- '
- 'label2
- '
- Me.label2.Location = New System.Drawing.Point(16, 96)
- Me.label2.Name = "label2"
- Me.label2.TabIndex = 7
- Me.label2.Text = "Active Tool :"
- '
- 'label3
- '
- Me.label3.Location = New System.Drawing.Point(144, 96)
- Me.label3.Name = "label3"
- Me.label3.Size = New System.Drawing.Size(208, 23)
- Me.label3.TabIndex = 8
- '
- 'label1
- '
- Me.label1.Location = New System.Drawing.Point(608, 136)
- Me.label1.Name = "label1"
- Me.label1.Size = New System.Drawing.Size(144, 24)
- Me.label1.TabIndex = 9
- Me.label1.Text = "Properties:"
- '
- 'cmRefresh
- '
- Me.cmRefresh.Location = New System.Drawing.Point(472, 96)
- Me.cmRefresh.Name = "cmRefresh"
- Me.cmRefresh.Size = New System.Drawing.Size(80, 24)
- Me.cmRefresh.TabIndex = 10
- Me.cmRefresh.Text = "Refresh"
- '
- 'Form1
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
- Me.ClientSize = New System.Drawing.Size(912, 629)
- Me.Controls.Add(Me.cmRefresh)
- Me.Controls.Add(Me.label1)
- Me.Controls.Add(Me.label3)
- Me.Controls.Add(Me.label2)
- Me.Controls.Add(Me.propsPalette)
- Me.Controls.Add(Me.StatusBar1)
- Me.Controls.Add(Me.picView)
- Me.Controls.Add(Me.GroupBox1)
- Me.Controls.Add(Me.GroupBox2)
- Me.Controls.Add(Me.cmZoomIn)
- Me.Controls.Add(Me.cmZoomOut)
- Me.Controls.Add(Me.cmZoomExtents)
- Me.Controls.Add(Me.cmCreateLine)
- Me.Controls.Add(Me.cmCreateCircle)
- Me.Controls.Add(Me.cmSelect)
- Me.Name = "Form1"
- Me.Text = "Form1"
- Me.GroupBox1.ResumeLayout(False)
- Me.GroupBox2.ResumeLayout(False)
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
-
- Sub EnableButtons(ByVal bVal As Boolean)
-
- cmCloseDrawing.Enabled = bVal
- cmZoomIn.Enabled = bVal
- cmZoomOut.Enabled = bVal
- cmZoomExtents.Enabled = bVal
- cmCreateLine.Enabled = bVal
- cmCreateCircle.Enabled = bVal
- cmSelect.Enabled = bVal
- cmRefresh.Enabled = bVal
- m_iActiveTool = ActiveTool.iSelectTool
- UpdatePrompt()
- End Sub
- Sub UpdatePrompt()
- StatusBar1.Text = ""
- Select Case m_iActiveTool
- Case ActiveTool.iSelectTool
- StatusBar1.Text = "Select Object"
- label3.Text = "Select Tool"
- Case ActiveTool.iAddLineSingleTool
- If (m_bDrag = False) Then
- StatusBar1.Text = "Define the start point of the line"
- label3.Text = "Add Single Line"
- Else
- StatusBar1.Text = "Define the end point of the line"
- label3.Text = "Add Single Line"
- End If
- Case ActiveTool.iAddCircleCenterAndPoint
- If (m_bDrag = False) Then
- StatusBar1.Text = "Define the center point of the circle"
- label3.Text = "Add Circle Center and Point"
- Else
- StatusBar1.Text = "Define a second point of the circle's circumferences"
- label3.Text = "Add Circle Center and Point"
- End If
- End Select
- End Sub
- Sub FillPropertiesPalette(ByVal gxGraphic As IMSIGX.IGraphic)
- ClearPropertiesPalette()
- If gxGraphic Is Nothing Then
- Return
- End If
- '// fill common info
- Dim pRootNode As TreeNode, pchildNode As TreeNode
- Dim gxVertices As IMSIGX.Vertices
- Dim gxVertex As IMSIGX.IVertex
- Dim var As Object
- Dim vardblVal As Double
- Dim radius As Double
- Dim xCenter As Double, yCenter As Double, X As Double, Y As Double, Z As Double
- vardblVal = 0
- pRootNode = propsPalette.Nodes.Add("General")
- pRootNode.Nodes.Add("GraphicID = " + gxGraphic.ID.ToString())
- pRootNode.Nodes.Add("Type = " + gxGraphic.Type.ToString())
- pRootNode = propsPalette.Nodes.Add("Geometry Information")
- gxVertices = gxGraphic.Vertices
- If (gxGraphic.TypeByValue = IMSIGX.ImsiGraphicType.imsiArc) Then
- pchildNode = pRootNode.Nodes.Add("Center")
- var = 0
- gxVertex = gxVertices.Item(var)
- xCenter = gxVertex.X
- yCenter = gxVertex.Y
- vardblVal = gxVertex.X
- pchildNode.Nodes.Add("X = " + vardblVal.ToString())
- vardblVal = gxVertex.Y
- pchildNode.Nodes.Add("Y = " + vardblVal.ToString())
- pchildNode.Nodes.Add("Z = 0")
-
- var = 1
- gxVertex = gxVertices.Item(var)
- X = gxVertex.X
- Y = gxVertex.Y
- radius = System.Math.Sqrt((xCenter - X) * (xCenter - X) + (yCenter - Y) * (yCenter - Y))
- pchildNode = pRootNode.Nodes.Add("Radius " + radius.ToString())
-
- ElseIf (gxGraphic.TypeByValue = IMSIGX.ImsiGraphicType.imsiPolyline) Then
-
- Dim n As Integer, i As Integer
- n = gxVertices.Count
- pRootNode = pRootNode.Nodes.Add("Vertices")
- For i = 0 To n - 1
- var = i
- gxVertex = gxVertices.Item(var)
- pchildNode = pRootNode.Nodes.Add("V " + var.ToString())
- X = gxVertex.X
- Y = gxVertex.Y
- Z = gxVertex.Z
- pchildNode.Nodes.Add("X = " + X.ToString())
- pchildNode.Nodes.Add("Y = " + Y.ToString())
- pchildNode.Nodes.Add("Z = " + Z.ToString())
- Next i
- End If
- gxGraphic.Drawing.Graphics.Unselect()
- gxGraphic.Selected = True
- tcApp.m_gxView.Refresh()
- propsPalette.ExpandAll()
- End Sub
- Sub ClearPropertiesPalette()
- propsPalette.Nodes.Clear()
- End Sub
-
- Private Sub cmCreateTCApp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmCreateTCApp.Click
- tcApp.CreateGxApp()
- End Sub
-
- Private Sub cmNewDrawing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmNewDrawing.Click
- tcApp.CreateNewDrawing()
- Dim pProp As IMSIGX.Property
- Dim varVal As Object
- varVal = "PaperColor"
- Dim lcolor As Integer
- pProp = tcApp.m_gxApp.Properties.Item(varVal)
- lcolor = pProp.Value '.get_Value(0)
- m_BackgroundColor = picView.BackColor
- picView.BackColor = System.Drawing.ColorTranslator.FromWin32(lcolor)
- pPenBackground = New Pen(picView.BackColor, 1)
-
-
- tcApp.CreateGxView(picView.Handle.ToInt32)
- tcApp.m_gxView.ZoomToExtents()
- EnableButtons(True)
- Me.Text = sTitle + " ------ " + tcApp.m_gxDrawing.Name
-
- End Sub
-
- Private Sub cmCloseDrawing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmCloseDrawing.Click
- m_bDrag = False
- pPenBackground.Dispose()
- tcApp.m_gxDrawing.Close()
- tcApp.m_gxDrawing = Nothing
- tcApp.m_gxView = Nothing
- EnableButtons(False)
- Form1.ActiveForm.Text = sTitle
- picView.BackColor = m_BackgroundColor
- picView.Refresh()
- StatusBar1.Text = ""
- End Sub
-
- Private Sub cmZoomIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmZoomIn.Click
- tcApp.Zoom(0.8)
- picView.Refresh()
- tcApp.m_gxView.Refresh()
- End Sub
-
- Private Sub cmZoomOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmZoomOut.Click
- tcApp.Zoom(1.2)
- picView.Refresh()
- tcApp.m_gxView.Refresh()
- End Sub
- Private Sub cmZoomExtents_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmZoomExtents.Click
- If Not tcApp.m_gxView Is Nothing Then
- picView.Refresh()
- tcApp.m_gxView.ZoomToExtents()
- End If
-
- End Sub
- Private Sub cmCreateLine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmCreateLine.Click
- tcApp.m_gxDrawing.Graphics.Unselect()
- tcApp.m_gxView.Refresh()
- m_iActiveTool = ActiveTool.iAddLineSingleTool
- UpdatePrompt()
- End Sub
- Private Sub cmCreateCircle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmCreateCircle.Click
- tcApp.m_gxDrawing.Graphics.Unselect()
- tcApp.m_gxView.Refresh()
- m_iActiveTool = ActiveTool.iAddCircleCenterAndPoint
- UpdatePrompt()
- End Sub
-
- Private Sub cmSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmSelect.Click
- StatusBar1.Text = "Select object"
- m_iActiveTool = ActiveTool.iSelectTool
- UpdatePrompt()
- FillPropertiesPalette(Nothing)
- End Sub
-
- Private Sub picView_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picView.MouseDown
- Dim gxGraphic As IMSIGX.IGraphic
- Dim mouseX As Integer
- Dim mouseY As Integer
- mouseX = e.X
- mouseY = e.Y
- If tcApp.m_gxView Is Nothing Then
- Return
- End If
- If (e.Button = MouseButtons.Left) Then
- If (m_iActiveTool <> ActiveTool.iSelectTool) Then
- '// if firstPointX nad firstPointY equal -1 it means that tool just started and
- '// is in first click mode
- If (firstPointY = -1 And firstPointX = -1) Then
- '// store coordinates of first click
- firstPointX = mouseX
- firstPointY = mouseY
- '// switch to second click mode
- m_bDrag = True
- UpdatePrompt()
- Return
- End If
- End If
-
- Select Case (m_iActiveTool)
- Case ActiveTool.iSelectTool
- Dim gxSelectedGraphic As IMSIGX.IGraphic
- tcApp.m_gxDrawing.Graphics.Unselect()
- gxSelectedGraphic = tcApp.SelectGraphic(mouseX, mouseY)
- FillPropertiesPalette(gxSelectedGraphic)
- tcApp.m_gxView.Refresh()
-
- Case ActiveTool.iAddLineSingleTool
- gxGraphic = tcApp.AddLineSingle(firstPointX, firstPointY, mouseX, mouseY)
- m_bDrag = False
- firstPointX = -1
- firstPointY = -1
- previousMoveX = -1
- previousMoveY = -1
-
- Case ActiveTool.iAddCircleCenterAndPoint
- gxGraphic = tcApp.AddCircleCenterAndPoint(firstPointX, firstPointY, mouseX, mouseY)
- m_bDrag = False
- firstPointX = -1
- firstPointY = -1
- previousMoveX = -1
- previousMoveY = -1
- End Select
- picView.Refresh()
- tcApp.m_gxView.Refresh()
- UpdatePrompt()
- Return
- End If
- End Sub
-
- Private Sub picView_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picView.MouseMove
- UpdatePrompt()
- If (m_bDrag = False) Then
- Return
- End If
- Dim mouseX As Integer
- Dim mouseY As Integer
- Dim radius As Integer
- mouseX = e.X
- mouseY = e.Y
-
- radius = 0
-
- Select Case (m_iActiveTool)
- Case ActiveTool.iAddLineSingleTool
- If (m_bDrag = True) Then
- '// draw previous state of line with background color to hide it
- pGraphics.DrawLine(pPenBackground, firstPointX, firstPointY, previousMoveX, previousMoveY)
- '// draw current staet of line
- pGraphics.DrawLine(pPen, firstPointX, firstPointY, mouseX, mouseY)
- End If
- Case ActiveTool.iAddCircleCenterAndPoint
- '// calculate radius for previous state of the circle
- radius = System.Math.Sqrt((firstPointX - previousMoveX) * (firstPointX - previousMoveX) + (firstPointY - previousMoveY) * (firstPointY - previousMoveY))
- If (radius <> 0) Then
- '// hide previous state of circle by draw it with background color
- pGraphics.DrawArc(pPenBackground, firstPointX - radius, firstPointY - radius, 2 * radius, 2 * radius, 0, 360)
- End If
- '// calculate radius of circle for current state
- radius = System.Math.Sqrt((firstPointX - mouseX) * (firstPointX - mouseX) + (firstPointY - mouseY) * (firstPointY - mouseY))
- If (radius <> 0) Then
- '// draw current state of the circle
- pGraphics.DrawArc(pPen, firstPointX - radius, firstPointY - radius, 2 * radius, 2 * radius, 0, 360)
- End If
-
- End Select
- previousMoveX = mouseX
- previousMoveY = mouseY
- If Not tcApp.m_gxView Is Nothing Then
- tcApp.m_gxView.Refresh()
- End If
-
- End Sub
-
- Private Sub cmRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmRefresh.Click
- tcApp.m_gxView.Refresh()
- 'picView.Refresh()
- End Sub
-
- Private Sub picView_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picView.Paint
- ' do not allow windows to perform paint of our PictureBox control we use for preview otherwise we wil see nothing
- Return
- End Sub
- End Class
-